home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
BARNET
/
STRAYLIGHT
/
SAPPHIRE.ZIP
/
StraySrc
/
SapphToys
/
!DrawX
/
Makefile
< prev
next >
Wrap
Makefile
|
1998-01-29
|
4KB
|
166 lines
#
# Makefile
#
# © 1998 Straylight/Edgeware
#
#----- Licensing note -------------------------------------------------------
#
# This makefile is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This makefile is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this makefile. If not, write to the Free Software Foundation,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#----- Compilation flags ----------------------------------------------------
# --- Uncomment to use the C4 tools ---
# OLD = o-
# --- C compilation ---
CC = $(OLD)cc -c -o $@
CFLAGS = -depend !Depend -throwback -ffah -Ilibs: -IC:
COMPILE = $(CC) $(CFLAGS)
# --- Assembling ---
AS = $(OLD)objasm -quit -to $@
ASFLAGS = -stamp -depend !Depend -throwback
ASSEMBLE = $(AS) $(ASFLAGS) -from
BAS = basasm
# --- Linking ---
LD = $(OLD)link -o $@
LD_APP = $(LD) -aif
LD_UTIL = $(LD) -bin -base 0
LD_MOD = $(LD) -bin -base 0
LD_BIN = $(LD) -bin -base 0
LD_DLL = $(LD) -rmf
LD_AOF = $(LD) -aof
# --- Making libraries ---
AR = $(OLD)libfile -o
CDLL = cdll
# --- Setting file types ---
SET_APP = SetType $@ FF8
SET_MOD = SetType $@ FFA
SET_UTIL = SetType $@ FFC
SET_DLL = SetType $@ FFD
# --- Other maintenance things ---
RM = ssrclean
INSTALL = inst
SETDATE = setdate
SQUEEZE = squeeze $@
DATE = %zdy %mo %ce%yr
MODDATE = %dy %m3 %ce%yr
CRIGHT = © %ce%yr Straylight
FIXLINK = fixlink $@
#----- Default rules --------------------------------------------------------
.SUFFIXES: .o .c .s .bs
.c.o:
$(COMPILE) $<
.s.o:
$(ASSEMBLE) $<
.bs.o:
$(BAS) $< $@
#----- Compiling things -----------------------------------------------------
all: !RunImage Modules.Sculptrix Modules.Sprinkle setSlot
!RunImage: o.drawx libs:lib.sapphdll
$(SETDATE) o.version version="1.03 ($(DATE))" cright="$(CRIGHT)"
$(LD_APP) o.drawx o.version libs:lib.sapphdll
$(SQUEEZE)
$(SET_APP)
Modules.Sculptrix: <SSR$ModDir>.Sculptrix
$(INSTALL) <SSR$ModDir>.Sculptrix Modules
Modules.Sprinkle: <SSR$ModDir>.Sprinkle
$(INSTALL) <SSR$ModDir>.Sprinkle Modules
setSlot: <SSR$BinDir>.setSlot
$(INSTALL) <SSR$BinDir>.setSlot @
install:
clean:
-$(RM) o.* !RunImage Modules.Sculptrix setSlot
#----- Dynamic dependencies -------------------------------------------------
# Dynamic dependencies:
o.drawx: s.drawx
o.drawx: libs:header
o.drawx: libs:swis
o.drawx: libs:stream
o.drawx: sapphire:sapphire
o.drawx: sapphire:akbd
o.drawx: sapphire:alloc
o.drawx: sapphire:banner
o.drawx: sapphire:buttons
o.drawx: sapphire:cmdLine
o.drawx: sapphire:dbox
o.drawx: sapphire:defHandler
o.drawx: sapphire:divide
o.drawx: sapphire:drag
o.drawx: sapphire:draw
o.drawx: sapphire:errorBox
o.drawx: sapphire:event
o.drawx: sapphire:fastMove
o.drawx: sapphire:flex
o.drawx: sapphire:heap
o.drawx: sapphire:help
o.drawx: sapphire:hour
o.drawx: sapphire:ibicon
o.drawx: sapphire:idle
o.drawx: sapphire:intKeys
o.drawx: sapphire:libOpts
o.drawx: sapphire:mbox
o.drawx: sapphire:menu
o.drawx: sapphire:menuDefs
o.drawx: sapphire:msgs
o.drawx: sapphire:progInfo
o.drawx: sapphire:ptr
o.drawx: sapphire:report
o.drawx: sapphire:res
o.drawx: sapphire:resources
o.drawx: sapphire:screen
o.drawx: sapphire:string
o.drawx: sapphire:warning
o.drawx: sapphire:wimp
o.drawx: sapphire:win
o.drawx: sapphire:winUtils
o.drawx: sapphire:choices.choices
o.drawx: sapphire:choices.options
o.drawx: sapphire:choices.prefs
o.drawx: sapphire:dbx.dbx
o.drawx: sapphire:dbx.arrow
o.drawx: sapphire:dbx.dbx
o.drawx: sapphire:dbx.numWrite
o.drawx: sapphire:dbx.dbx
o.drawx: sapphire:xfer.load
o.drawx: sapphire:xfer.save
o.drawx: sapphire:xfer.saveAs